import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "@/views/Home.vue"

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: "首页"
    }
  },
  {
    path: '/getRecord',
    name: 'GetRecord',
    component: () => import(/* webpackChunkName: "GetRecord" */ '@/views/GetRecord.vue'),
    meta: {
      title: "获奖记录"
    }
  },
  {
    path: '/takeAddress',
    name: 'TakeAddress',
    component: () => import(/* webpackChunkName: "TakeAddress" */ '@/views/TakeAddress.vue'),
    meta: {
      title: "收货地址"
    }
  },
  {
    path: "/subject1",
    name: "Subject1",
    component: () => import(/* webpackChunkName: "Subject1" */ '@/views/Subject1.vue'),
    meta: {
      title: "题目一"
    }
  },
  {
    path: "/subject2",
    name: "Subject2",
    component: () => import(/* webpackChunkName: "Subject2" */ '@/views/Subject2.vue'),
    meta: {
      title: "题目二"
    }
  },
  {
    path: "/subject3",
    name: "Subject3",
    component: () => import(/* webpackChunkName: "Subject3" */ '@/views/Subject3.vue'),
    meta: {
      title: "题目三"
    }
  },
  {
    path: "/subject4",
    name: "Subject4",
    component: () => import(/* webpackChunkName: "Subject4" */ '@/views/Subject4.vue'),
    meta: {
      title: "题目四"
    }
  },
  {
    path: "/subject5",
    name: "Subject5",
    component: () => import(/* webpackChunkName: "Subject5" */ '@/views/Subject5.vue'),
    meta: {
      title: "题目五"
    }
  },
  {
    path: "/subject6",
    name: "Subject6",
    component: () => import(/* webpackChunkName: "Subject6" */ '@/views/Subject6.vue'),
    meta: {
      title: "题目六"
    }
  },
  {
    path: "/drawAward",
    name: "DrawAward",
    component: () => import(/* webpackChunkName: "DrawAward" */ '@/views/DrawAward.vue'),
    meta: {
      title: "领取奖励"
    }
  },
  {
    path: "/sendRecord",
    name: "SendRecord",
    component: () => import(/* webpackChunkName: "SendRecord" */ "@/views/SendRecord.vue"),
    meta: {
      title: "有奖弹幕"
    }
  }
]

const router = new VueRouter({
  // base: process.env.BASE_URL,
  routes
})

export default router
